package ulric.kit;

/**
 * User: Ulric Qin
 * Date: 13-8-7 4:06pm
 */
public class SQLKit {

    public static String joinQuestionMark(int size) {
        StringBuilder ret = new StringBuilder("");
        if (size <= 0) {
            throw new IllegalArgumentException("The param size should be positive!");
        }
        for (int i = 0; i < size; i++) {
            ret.append("?,");
        }
        ret.deleteCharAt(ret.length() - 1);
        return ret.toString();
    }

    public static void main(String[] args) {
        System.out.println(joinQuestionMark(3));
    }
}
